
<%@page import="model.Item"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<html>
    <body>
        <h3>Item List</h3>
        <table border="1">
            <tr>
                <td>Nama</td>
                <td>Keterangan</td>
                <td>Harga</td>
            </tr>
            <%
                List<Item> items = (ArrayList<Item>)request.getAttribute("listItem");
                for(Item item : items){                    
            %>
            <tr>
                <td><%=item.getNama()%></td>
                <td><%=item.getKeterangan()%></td>
                <td><%=item.getHarga()%></td>
            </tr>
            <%}%>
        </table>
    </body>
</htm>